Update gitlab-ci.yml
authorFelix Krull <f_krull@gmx.de>
Sat, 20 Oct 2018 10:18:54 +0000 (12:18 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:53 +0000 (12:53 -0400)
rust-bindings/rust/.gitlab-ci.yml

index 8c288c410cc33dcaf747b5440eb7c2845cfef6c1..eb432c486a543a86bd7aa22d7d3314d3ffdde6e8 100644 (file)
@@ -1,5 +1,8 @@
 image: rust:latest
 
+variables:
+  CARGO_TARGET_DIR: target
+
 before_script:
 - echo deb http://ftp.debian.org/debian stretch-backports main > /etc/apt/sources.list.d/backports.list
 - apt-get update
@@ -13,29 +16,29 @@ stages:
 libostree-sys:
   stage: build
   script:
-  - cargo build --verbose --package libostree-sys
-  - cargo test --verbose --package libostree-sys
+  - cargo build --verbose --manifest-path libostree-sys/Cargo.toml
+  - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
 
 libostree:
   stage: build
   script:
-  - cargo build --verbose --package libostree
-  - cargo test --verbose --package libostree
+  - cargo build --verbose
+  - cargo test --verbose
 
 libostree-sys_nightly:
   stage: build
   image: rustlang/rust:nightly
   script:
-  - cargo build --verbose --package libostree-sys
-  - cargo test --verbose --package libostree-sys
+  - cargo build --verbose --manifest-path libostree-sys/Cargo.toml
+  - cargo test --verbose --manifest-path libostree-sys/Cargo.toml
   allow_failure: true
 
 libostree_nightly:
   stage: build
   image: rustlang/rust:nightly
   script:
-  - cargo build --verbose --package libostree
-  - cargo test --verbose --package libostree
+  - cargo build --verbose
+  - cargo test --verbose
   allow_failure: true
 
 # docs
@@ -43,7 +46,6 @@ docs:
   stage: docs
   script:
   - make merge-lgpl-docs
-  - cd libostree
   - cargo doc --verbose --features dox
   artifacts:
     paths:
@@ -64,12 +66,12 @@ publish_libostree-sys:
   stage: publish
   script:
   - make pre-package
-  - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN
+  - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN
   when: manual
 
 publish_libostree:
   stage: publish
   script:
   - make pre-package
-  - cargo publish --verbose --manifest-path libostree/Cargo.toml --allow-dirty --token $CRATES_IO_TOKEN
+  - cargo publish --verbose --token $CRATES_IO_TOKEN
   when: manual